import { dateFormat } from '@/util/date';
export const startDate = dateFormat(new Date(), 'yyyy-MM-') + '01';
let now = new Date();
now.setDate(now.getDate() + 1);
export const endDate = dateFormat(now, 'yyyy-MM-dd');
export const tableOption = {
  "border": true,
  "index": true,
  "indexLabel": "序号",
  "stripe": true,
  "menuAlign": "center",
  "align": "center",
  selection:true,
  viewBtn:true,
  addBtn: false,
  editBtn: false,
  delBtn: false,
  searchMenuSpan: 6,
  "column": [
	  {
      "type": "input",
      "label": "ID",
      "prop": "id",
      hide:true,
      display:false,
    },	  {
      "type": "input",
      "label": "卡号",
      "prop": "cardNum",
      search:true,
    },	  {
      "type": "input",
      "label": "姓名",
      "prop": "name",
      search:true,
    },	  {
      "type": "select",
      "label": "所属单位",
      "prop": "belongUnit",
      props: {
        label: 'name',
        value: 'name'
      },
      dicUrl: '/admin/dept/getBlackDept',
    },	  {
      "type": "datetime",
      "label": "拉黑时间",
      "prop": "blackTime",
      search:true,
      searchValue: [startDate, endDate],
      searchRange: true,
      searchSpan: 12,
      format: 'yyyy-MM-dd',
      valueFormat: 'yyyy-MM-dd',
      addDisplay: false
    },	  {
      "type": "select",
      "label": "票卡类型",
      "prop": "ticketType",
      dicUrl: '/admin/dict/type/st_sw_tk_official_ticket',
      search:true
    },	  {
      "type": "datetime",
      "label": "提交时间",
      "prop": "submitTime",
      format: 'yyyy-MM-dd HH:mm:ss',
      valueFormat: 'yyyy-MM-dd HH:mm:ss',
      addDisplay: false
    },	  {
      "type": "select",
      "label": "拉黑状态",
      "prop": "blackStatus",
      dicUrl:"/admin/dict/type/st_sw_tk_black_status",
      addDisplay: false
    },	  {
      "type": "select",
      "label": "办理状态",
      "prop": "handleStatus",
      search:true,
      dicUrl:"/admin/dict/type/st_sw_tk_black_handle",
      addDisplay: false
    },	  {
      "type": "input",
      "label": "审批时间",
      "prop": "auditTime",
      addDisplay: false,
      
    },
    {
      "type":"textarea",
      "label":"备注",
      "prop":"remark",
      maxRow:6,
      minRow:4,
      span:24,
    },{
      "type": "input",
      "label": "部门id",
      "prop": "deptId",
      hide:true,
      display:false,
    },	  {
      "type": "input",
      "label": "创建人id",
      "prop": "creatorId",
      hide:true,
      display:false,
    },	  {
      "type": "input",
      "label": "创建人",
      "prop": "creatorName",
      hide:true,
      display:false,
    },	  {
      "type": "input",
      "label": "创建时间",
      "prop": "createTime",
      hide:true,
      display:false,
    },	  {
      "type": "input",
      "label": "修改时间",
      "prop": "updateTime",
      hide:true,
      display:false,
    }]
}
